package com.casems.service.impl;

import com.casems.commons.vo.RoleVO;
import com.casems.entity.Role;
import com.casems.mapper.RoleMapper;
import com.casems.service.RoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tch
 * @since 2023-05-18
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<RoleVO> getAll() {
        List<RoleVO> all = roleMapper.getAll();
        return all;
    }
}
